package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维修管理对象 sys_repairs
 * 
 * @author ruoyi
 * @date 2023-12-05
 */
public class SysRepairs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修id主键 */
    private Long id;

    /** 维修等级 */
    @Excel(name = "维修等级")
    private String repairsLevel;

    /** 维修类别 */
    @Excel(name = "维修类别")
    private String repairsType;

    /** 工作票编号 */
    @Excel(name = "工作票编号")
    private String ticketNumber;

    /** 维修动作 */
    @Excel(name = "维修动作")
    private String repairsAction;

    /** 维修时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date repairsTime;

    /** 下次维修时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次维修时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextRepairsTime;

    /** 维修费用 */
    @Excel(name = "维修费用")
    private BigDecimal repairsFee;

    /** 备件消耗 */
    @Excel(name = "备件消耗")
    private String spareParts;

    /** 维修结果 */
    @Excel(name = "维修结果")
    private String repairsResult;

    /** 风场id */
    @Excel(name = "风场id")
    private Long windId;

    /** 机组id */
    @Excel(name = "机组id")
    private Long setId;

    /** 设备id */
    @Excel(name = "设备id")
    private Long equipmentId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 维修员 */
    @Excel(name = "维修员")
    private String repairsPerson;

    /** 故障id */
    @Excel(name = "故障id")
    private Long faultId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRepairsLevel(String repairsLevel) 
    {
        this.repairsLevel = repairsLevel;
    }

    public String getRepairsLevel() 
    {
        return repairsLevel;
    }
    public void setRepairsType(String repairsType) 
    {
        this.repairsType = repairsType;
    }

    public String getRepairsType() 
    {
        return repairsType;
    }
    public void setTicketNumber(String ticketNumber) 
    {
        this.ticketNumber = ticketNumber;
    }

    public String getTicketNumber() 
    {
        return ticketNumber;
    }
    public void setRepairsAction(String repairsAction) 
    {
        this.repairsAction = repairsAction;
    }

    public String getRepairsAction() 
    {
        return repairsAction;
    }
    public void setRepairsTime(Date repairsTime) 
    {
        this.repairsTime = repairsTime;
    }

    public Date getRepairsTime() 
    {
        return repairsTime;
    }
    public void setNextRepairsTime(Date nextRepairsTime) 
    {
        this.nextRepairsTime = nextRepairsTime;
    }

    public Date getNextRepairsTime() 
    {
        return nextRepairsTime;
    }
    public void setRepairsFee(BigDecimal repairsFee) 
    {
        this.repairsFee = repairsFee;
    }

    public BigDecimal getRepairsFee() 
    {
        return repairsFee;
    }
    public void setSpareParts(String spareParts) 
    {
        this.spareParts = spareParts;
    }

    public String getSpareParts() 
    {
        return spareParts;
    }
    public void setRepairsResult(String repairsResult) 
    {
        this.repairsResult = repairsResult;
    }

    public String getRepairsResult() 
    {
        return repairsResult;
    }
    public void setWindId(Long windId) 
    {
        this.windId = windId;
    }

    public Long getWindId() 
    {
        return windId;
    }
    public void setSetId(Long setId) 
    {
        this.setId = setId;
    }

    public Long getSetId() 
    {
        return setId;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setRepairsPerson(String repairsPerson) 
    {
        this.repairsPerson = repairsPerson;
    }

    public String getRepairsPerson() 
    {
        return repairsPerson;
    }
    public void setFaultId(Long faultId) 
    {
        this.faultId = faultId;
    }

    public Long getFaultId() 
    {
        return faultId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("repairsLevel", getRepairsLevel())
            .append("repairsType", getRepairsType())
            .append("ticketNumber", getTicketNumber())
            .append("repairsAction", getRepairsAction())
            .append("repairsTime", getRepairsTime())
            .append("nextRepairsTime", getNextRepairsTime())
            .append("repairsFee", getRepairsFee())
            .append("spareParts", getSpareParts())
            .append("repairsResult", getRepairsResult())
            .append("windId", getWindId())
            .append("setId", getSetId())
            .append("equipmentId", getEquipmentId())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("repairsPerson", getRepairsPerson())
            .append("faultId", getFaultId())
            .toString();
    }
}
